#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
from multiprocessing import Process


def fp():
    print("123")
    time.sleep(1)
    print("fp 123 end")


def dp():
    print("456")
    time.sleep(2)
    print("dp 456 end")


if __name__ == '__main__':
    p1 = Process(target=fp)
    p2 = Process(target=dp)

    p1.daemon = True
    p1.start()
    p2.start()
    print("main----------- ")
